package com.example.plugin.compat;

import android.os.UserHandle;

import com.example.plugin.reflect.MethodUtils;

public class UserHandleCompat {

	public static int getCallingUserId() {
        try {
            Integer o = (Integer) MethodUtils.invokeStaticMethod(UserHandle.class, "getCallingUserId");
            return o.intValue();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }
}
